home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 26 / develop issue 26 code / wide (64 bit) library / widelib.make < prev    next >
Encoding:
Text File  |  1996-07-28  |  2.2 KB  |  98 lines

  1. # Copyright © 1996 by Apple Computer, Inc.  All rights reserved.
  2. # WideLib.Make
  3. #
  4. #FILE
  5. #    WideLib.Make
  6. #
  7. #NAME
  8. #    Int64Lib
  9. #
  10. #DESCRIPTION
  11. #
  12. #    This file includes the Make instructions to build
  13. #    the Wide shared code library
  14. #
  15. #    Supports both MPW 3.3.x (MPW C and PPCC) and MPW 3.4.x (SC and MrC)
  16. #    For MPW 3.3.x, must use pre-Universal CIncludes
  17. #    (Universal Headers 2.0 has a conflict between Types.h and SANE.h)
  18. #
  19. #MODIFICATION HISTORY
  20. #    Created by Terry Teague
  21. #
  22. #    18 Jul 96    -    TRT    -    Initial version (created initially by CreateMake tool)
  23. #    28 Jul 96    -    TRT    -    Modified to use new naming conventions
  24. #
  25. #################################################################################################
  26.  
  27. MAKEFILE        =    WideLib.make
  28. •MondoBuild•    =    {MAKEFILE}    # Make blank to avoid rebuilds when makefile is modified
  29.  
  30. Includes        =    {Shared.Includes}
  31. Sources            =    :Sources:
  32.  
  33. Sym•PPC            = 
  34. ObjDir•PPC        =    :Objects:
  35. Sym•68K            =
  36. ObjDir•68K        =    :Objects:
  37.  
  38. PPCCOptions        =    -i "{Includes}" {Sym•PPC} -d PPCC=1 
  39.  
  40. COptions        =    -i "{Includes}" {Sym•68K} -d MPWC=1 
  41.  
  42. Objects•PPC        =    ∂
  43.                     "{ObjDir•PPC}Wide.c.x"
  44.  
  45. Objects•68K        =    ∂
  46.                     "{ObjDir•68K}Wide.a.o" ∂
  47.                     "{ObjDir•68K}Wide.c.o"
  48.  
  49.  
  50. # targets to be overriden by SCMBuild script
  51. Wide68K            =    Wide.lib
  52. WidePPC            =    Wide.xcoff
  53.  
  54. # pseudo targets
  55. WideLib                ƒ    {•MondoBuild•} {Wide68K} {WidePPC}
  56.  
  57. Wide.PPC.xcoff        ƒ    {•MondoBuild•} Wide.xcoff
  58.  
  59. Wide.PPC.xcoff.MrC    ƒ    {•MondoBuild•} Wide.xcoff
  60.  
  61. Wide.68K.lib        ƒ    {•MondoBuild•} Wide.lib
  62.  
  63. Wide.68K.lib.SC        ƒ    {•MondoBuild•} Wide.lib
  64.  
  65. # real targets
  66. Wide.xcoff        ƒ    {•MondoBuild•} {Objects•PPC}
  67.     PPCLink ∂
  68.         -o {WidePPC} {Sym•PPC} ∂
  69.         {Objects•PPC} ∂
  70.         -xm library ∂
  71.         -t 'XCOF' ∂
  72.         -c 'MPS '
  73.  
  74.  
  75. Wide.lib        ƒ    {•MondoBuild•} {Objects•68K}
  76.     Lib ∂
  77.         -o {Wide68K} {Sym•68K} ∂
  78.         {Objects•68K}
  79.  
  80.  
  81. "{ObjDir•PPC}Wide.c.x"    ƒ    {•MondoBuild•} {Sources}Wide.c ∂
  82.                             {Includes}Wide.h
  83.     If "{MPWVersion}" !~ /3.4≈/
  84.         # old PPCC compiler requires Apple Extensions option to be on
  85.         {PPCC} {Sources}Wide.c -o {Targ} {PPCCOptions} -appleext on
  86.     Else
  87.         {PPCC} {Sources}Wide.c -o {Targ} {PPCCOptions}
  88.     End
  89.  
  90.  
  91. "{ObjDir•68K}Wide.a.o"    ƒ    {•MondoBuild•} {Sources}Wide.a
  92.     {Asm} {Sources}Wide.a -o {Targ} {AOptions}
  93.  
  94. "{ObjDir•68K}Wide.c.o"    ƒ    {•MondoBuild•} {Sources}Wide.c ∂
  95.                             {Includes}Wide.h
  96.     {C} {Sources}Wide.c -o {Targ} {COptions}
  97.  
  98.